const mongoose = require('mongoose')

//创建数据模型
const schema = new mongoose.Schema({
  title: { type: String },
  banner: { type: String },
  checkList: [ String ]
}, {
  timestamps: true //自动生成时间
})

module.exports = mongoose.model('Blogs', schema)